<div  th:fragment="userList" xmlns:th="http://www.thymeleaf.org">
    <table cellpadding="0" cellspacing="0" border="0"
           class="responsive  display table table-bordered dataTable" width="100%"
           id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
        <thead>
        <tr role="row">
            <th class="sorting_asc" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-sort="ascending">
                会员ID
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1">账号
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1">注册时间
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1">状态
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1">操作
            </th>
        </tr>
        </thead>

        <tbody role="alert" aria-live="polite" aria-relevant="all" th:unless="${#lists.isEmpty(users)}">
        <tr th:each="user: ${users}" th:data="${user.userid}">
            <td class="  sorting_1" th:text="${user.userid}">Trident</td>
            <td class=" " th:text="${user.username}">Internet
                Explorer 4.0
            </td>
            <td class=" " th:text="${#calendars.format(user.createtime,'yyyy-MM-dd HH:mm:ss')}">Win 95+</td>
            <td th:if="${user.state}==0">启用</td>
            <td th:if="${user.state}==1">禁用</td>
            <td  th:data="${user.userid}">
                <a href="javascript:;" th:if="${user.state}==1" class="btn btn-mini btn-info" name="on">启用</a>
                <a href="javascript:;" th:if="${user.state}==0" class="btn-warning btn btn-mini" name="off">禁用</a>
                <a href="javascript:;" class="btn-success btn btn-mini" name="edit">编辑</a>
                <a href="javascript:;" class="btn-danger btn btn-mini" name="detail">查看</a>
            </td>
        </tr>
        </tbody>
        <tbody role="alert" aria-live="polite" aria-relevant="all" th:if="${#lists.isEmpty(users)}">
        <tr>
            <td colspan="5">没有符合查询条件的记录</td>
        </tr>
        </tbody>
    </table>
    <input id="pageAllCount" type="hidden" th:value="${page.totalSize}"/>
</div>